package com.virus.mall.dao;

import com.virus.mall.model.User;
import com.virus.mall.model.UserUpdatePwd;

import java.util.List;

/**
 * @Classname UserDao
 * @Description NULL
 * @Date 2021/4/15 23:36
 * @Created by virus
 */
public interface UserDao {

    List<User> allUser();

    Integer deleteUser(Integer parseInt);

    List<User> searchUser(String word);

    Integer signup(User user);

    Integer login(User user);

    User data(String token);

    Integer updatePwd(UserUpdatePwd userUpdatePwd);

    Integer updateUserData(User user);

    Integer selectIdByEmail(String token);

    String selectNicknameByUserId(Integer userId);
}
